package com.hxs.learn.mapper.core;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.baomidou.mybatisplus.mapper.BaseMapper;

import com.hxs.learn.entity.core.SysRole;

/**
 * @author huxinsheng
 * @date 2018-04-24 15:26:25
 */
@Mapper
@Component
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 根据用户id查询用户拥有角色信息列表
     *
     * @param userId 用户ID
     * @return 用户拥有角色信息
     */
    List<SysRole> selectByUserId(@Param("userId") String userId);
}


//~ Formatted by Jindent --- http://www.jindent.com
